<html>
<head>
    <meta http-equiv="Content-Type" charset="UTF-8"/>

    <script type="text/javascript">
            function javacalljs(){
                 document.getElementById("showmsg").innerHTML = "JAVA调用了JS的无参函数";
            }

            function javacalljswith(arg){
                 document.getElementById("showmsg").innerHTML = (arg);
                 return arg;
            }

        </script>

</head>

<body>
<h3>Web模块</h3>

<h3 id="showmsg">调用js显示结果</h3>

<input type="button" value="Js调用Java代码" onclick="window.android.jsCallAndroid()"/>

<input type="button" value="Js调用Java代码并传参数" onclick="window.android.jsCallAndroidArgs('Js传过来的参数')"/>
</body>
</html>